home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 799 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
  2. Message-ID: <314FA95C.2F38755E@cantrip.org>
  3. X-Original-Date: Tue, 19 Mar 1996 22:44:44 -0800
  4. Path: in1.uu.net!bounce-back
  5. Date: 21 Mar 96 10:49:26 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: static_cast
  9. Organization: The Cantrip Cooperative
  10. References: <gkng2b584f4.fsf@bmtlh30.nortel.ca>
  11. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i386)
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMVE0UOEDnX0m9pzZAQFZTgF+PKjVpZ2iBYNGCExLImT8yaeK4AAuKrwY
  14.     pi1BclHWz5RA6iht3+s8TMGmCLkFBW5R
  15.     =L1hg
  16.  
  17. linh (l.) dang wrote:
  18.  
  19. > Since static_cast is not always safe, did anyone consider a set of
  20. > implicit_cast<T> template functions as part of the standard library ?
  21.  
  22. They were considered at the meeting in Tokyo (Nov. '95) but 
  23. rejected as an extension proposal that arrived just too late.
  24. (I gather they were left out of the proposal for the original 
  25. suite of casts because they could be implemented in the library, 
  26. but nobody got around to proposing them to the library group 
  27. until too late.)
  28.  
  29. If they find wide use they might be added to the next C++ standard.
  30.  
  31. > These functions are efficient, safe and might be the fatal blow to the
  32. > old-style cast.
  33.  
  34. One can dream, at least.
  35.  
  36. Nathan Myers
  37. ncm@cantrip.org  http://www.cantrip.org/
  38. ---
  39. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  40. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  41. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  42. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  43. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  44.